﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MyStore.PresentationModel.Controllers
{
    public class HomeController : Controller
    {
        //private readonly NHibernate.ISession session;

        //public HomeController(NHibernate.ISession session)
        //{
        //    this.session = session;
        //}

        public HomeController()
        {
        }


        public ActionResult Index()
        {
            int time = DateTime.Now.Hour;
            ViewBag.Word = time <= 12 ? "早上好!" : "下午好!";
            //ViewBag.MemberCount = 1;
            //session.QueryOver<Members.Member>().RowCount();
            return View();
        }

    }
}
